package com.pms.system.domain;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.pms.common.annotation.Excel;
import com.pms.common.core.domain.BaseEntity;

import java.math.BigDecimal;

/**
 * 客房类型对象 pms_guestroom_item
 * 
 * @author 达瓦里氏
 * @date 2023-03-04
 */
@Data
public class PmsGuestroomItem extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 客房类型code */
    @Excel(name = "客房类型code")
    private String code;

    /** 客房类型名称 */
    @Excel(name = "客房类型名称")
    private String name;

    /*房间数量*/
    private int store;

    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal price;


    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /*照片图片*/
    private String img;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public int getStore() {
        return store;
    }

    public void setStore(int store) {
        this.store = store;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }
    public void setImg(){
        this.img = img;
    }
    public String getImg(){
        return img;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("code", getCode())
            .append("name", getName())
            .append("store", getStore())
            .append("price", getPrice())
            .append("delFlag", getDelFlag())
            .append("img",getImg())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
